home *** CD-ROM | disk | FTP | other *** search
- on printText
- global printButton, browserTopicsLine, textSprite
- activateButtonThenEnable(printButton)
- set textCastName to the name of cast the castNum of sprite textSprite
- set whichTopic to word 1 to the number of words in textCastName - 1 of textCastName
- printTopic(whichTopic)
- end
-
- on printTopic whichTopic
- set theText to getAllTextInTopic(whichTopic)
- if the machineType = 256 then
- printTextFromPC(theText)
- else
- printTextFromMac(theText)
- end if
- end
-
- on getAllTextInTopic whichTopic
- global currentPage
- set theText to the text of field (whichTopic && "TEXT" & 1)
- set oldCurrentPage to currentPage
- resetCurrentPage()
- set nextPageCast to getNextPageCast(1)
- repeat while nextPageCast <> -1
- set theText to theText && the text of cast nextPageCast
- updateCurrentPage(1)
- set nextPageCast to getNextPageCast(1)
- end repeat
- set currentPage to oldCurrentPage
- return theText
- end
-